package com.qidi.bean;

/**
 * @author zhouXinBin
 * @create 2020-11-03-16:10
 */
public class User {
    private Integer uid;
    private String ucode; //账号
    private String uname; //昵称
    private String upassword; //密码
    private Integer ustate;  //状态： 0 管理员，1 普通人员

    public User() {
    }

    public User(Integer uid, String ucode, String uname, String upassword) {
        this.uid = uid;
        this.ucode = ucode;
        this.uname = uname;
        this.upassword = upassword;
        this.ustate=1;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUcode() {
        return ucode;
    }

    public void setUcode(String ucode) {
        this.ucode = ucode;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    public Integer getUstate() {
        return ustate;
    }

    public void setUstate(Integer ustate) {
        this.ustate = ustate;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", ucode='" + ucode + '\'' +
                ", uname='" + uname + '\'' +
                ", upassword='" + upassword + '\'' +
                ", ustate='" + ustate + '\'' +
                '}';
    }
}
